{template header}
<body class="bg_recruit">
	<!-- S header -->
	<header class="recruit_header">
		<a href="/index.php?m=user" class="headerL iconfont">&#xe66a;</a>
		<h1>招募</h1>
	</header>
	<!-- E header -->
	<!-- S 邀请好友  -->
	<div class="invite_code_box alignC">
		<img src="{THEME_PATH}images/image1.png" alt="" width="265" class="wenzi"><br>
		<div style="line-height: 50px;"><?php echo $this->userinfo['invite_code'];?></div>
		<input type="hidden" id="turl" value="<?php echo $this->userinfo['invite_code'];?>" class="in">
		<a href="javascript:;" onclick="copyToClipboard('turl')" class="copy">复制邀请码</a>


		<img src="/index.php?m=user&c=public&a=qr&invite_code=<?php echo $this->userinfo['invite_code']?>" alt="" width="140" height="140" class="code">
	</div>
	<!-- E 邀请好友 -->

<script>
    function copyToClipboard(elementId) {
      // 创建元素用于复制
      var aux = document.createElement("input");
      // 获取复制内容
      var content = document.getElementById(elementId).innerHTML || document.getElementById(elementId).value;
      // 设置元素内容
      aux.setAttribute("value", content);
      // 将元素插入页面进行调用
      document.body.appendChild(aux);
      // 复制内容
      aux.select();
      // 将内容复制到剪贴板
      document.execCommand("copy");
      // 删除创建元素
      document.body.removeChild(aux);
	  alert("链接复制成功");
	  //layer.msg("链接复制成功");
    }
</script>
	<div class="three_step">
		<h2>简单三步&nbsp;&nbsp;立享权益</h2>
		<div class="step_box flex flex-pack-justify">
			<dl class="step">
				<dt><img src="{THEME_PATH}images/step1.png" alt="" width="60" height="60"></dt>
				<dd>分享活动<br>给您好友</dd>
			</dl>
			<dl class="step">
				<dt><img src="{THEME_PATH}images/step2.png" alt="" width="60" height="60"></dt>
				<dd>好友接受<br>您的邀请</dd>
			</dl>
			<dl class="step">
				<dt><img src="{THEME_PATH}images/step3.png" alt="" width="60" height="60"></dt>
				<dd>好友注册<br>成为会员</dd>
			</dl>
		</div>
		<!-- <h2>我的直推战绩</h2>
		<div class="invite_record_box">
			<div class="flex flex-pack-justify">
				<dl class="record">
					<dt>36</dt>
					<dd>共直推人数</dd>
				</dl>
				<dl class="record">
					<dt class="red">1600.00</dt>
					<dd>奖励金额(DBT)</dd>
				</dl>
			</div>
		</div> -->
	</div>
</body>
</html>